<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>

    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="componentheading"><?php echo $a[heading] ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
   if ($a[sentmail] != ''){
?>
      <tr>
        <td><br><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php echo $a[sentmail]; ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td class="main"><?php echo $a[button_back]; ?></td>
      </tr>
<?php
   }else{
?>
      <tr>
        <td><?php echo $a[form] ?><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="componentheading"><?php echo $a[cust_detail] ?></td>
          </tr>
          <tr>
            <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
              <tr>
                <td class="main"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main"><?php echo $a[cust_name] ?></td>
                    <td class="main"><?php echo $a[cust_name_input] ?></td>
                  </tr>
                  <tr>
                    <td class="main"><?php echo $a[cust_email] ?></td>
                    <td class="main"><?php echo $a[cust_email_input]; ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
          <tr>
            <td class="componentheading"><?php echo $a[friend_detail] ?></td>
          </tr>
          <tr>
            <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
              <tr>
                <td class="main"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main"><?php echo $a[friend_name] ?></td>
                    <td class="main"><?php echo $a[friend_name_input]?></td>
                  </tr>
                  <tr>
                    <td class="main"><?php echo $a[friend_email] ?></td>
                    <td class="main"><?php echo $a[friend_email_input] ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="formAreaTitle"><br><?php echo $a[friend_message] ?></td>
          </tr>
          <tr>
            <td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
              <tr>

                <td><?php echo $a[friend_message_input]?></td>

              </tr>
            </table></td>
          </tr>
          <tr>
            <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="main"><?php echo $a[button_back] ?></td>
                <td align="right" class="main"><?php echo $a[button_send] ?></td>
              </tr>
            </table></td>
          </tr>
        </table></form></td>
      </tr>
<?php
    }

?>
    </table></td>
<!-- body_text_eof //-->

  </tr>
</table>